package com.tianliangedu.utils;

/**
 * hash方法工具类
 * 
 */
public class HashFuncUtil {
	public static int getHashCode(String key, int numBuckets) {
		return (key.hashCode() & Integer.MAX_VALUE) % numBuckets;
	}
}
